var arr=[];
var page=1;
var count=5;
var n;
function rwt(){
    $.ajax({
        url:'/api/student/getstudent',
        type:'get',
        success:function(res){
            if(res.data.length){
                arr=res.data;
                rem();
                ret();
            }
        }
    })
}
rwt();
function rem() {
    $('.motaikuang table tbody').html('');
    $.each(arr.slice((page - 1) * count, page * count), function (i, v) {
        var a = v.type == '1' ? '普通管理员' : "超级管理员";
        $('.motaikuang table tbody').append('<tr>\
        <td class="th1">101</td>
        <td>学生1</td>
        <td>101</td>
        <td>1002</td>
        <td>5</td>
        <td>正常</td>
        <td>

            <button type="button" class="shu" data-toggle="modal" data-target="#myModal1">
                删除
            </button>

            <button type="button" class="shu" data-toggle="modal" data-target="#exampleModal1"
                data-whatever="@mdo">修改</button>

            <button type="button" class="shui" data-toggle="modal" data-target="#Modal1">
                查看缴费记录
            </button>

        </td>
    </tr>'
        )
    })
}